package com.hsc.www.cxf.server;

import javax.jws.WebService;

@WebService(
        name = "test",//暴露的服务名称
        endpointInterface = "com.hsc.www.cxf.server.StudentService"//接口地址
)
public class StudentServiceImpl implements StudentService {

    @Override
    public Student getStudent(Long id)  {
        return new Student(id, "明哥");
    }

    @Override
    public String getStudentName(Long id)  {
        return "明哥";
    }
}